﻿using DataWasher.WebApi.IServices;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DataWasher.WebApi.Controllers
{
    [Route("api/calculate")]
    [ApiController]
    public class CalculateController : ControllerBase
    {
        private readonly ICalculateService _service;
        public CalculateController(ICalculateService service)
        {
            _service = service;
        }

        [HttpPost]
        [Route("sqx")]
        public async Task<bool> CalculateSQX()
        {
            
            return await _service.CalculateSQX();
        }
    }
}
